{{extend "req_layout.html"}}

{{block sub_menu}}
{{sub_menu(menu_items, 'requirements')}}
{{end}}

{{block content_tool}}
{{if (request.user.is_superuser) or (request.user.department == '1'):}}
    <a class="btn btn-blue" href="/requirements/add">点击这里增加新准开发需求</a>
{{pass}}
{{end}}

{{block content_main}}
{{use "jquery"}}

<div class="content">
    <div class="query">
        {{embed query_form}}
    </div>
    {{table_id='requirement'}}
    {{include "inc_table.html"}}
    <script>
        $(function(){
            create_table("{{=request.path}}", download=true);
        });
    </script>
</div>

{{end}}